package com.ygxsk.carhome.response;

import android.os.Parcel;
import android.os.Parcelable;

import java.math.BigDecimal;

/*
 * @Author:itchenqi175@163.com
 * @Time:2023-10-12  11:12
 * @Description: 接口响应回来的 支付方式 实体
 */
public class PayTypeListBean implements Parcelable {

    /**
     * amount : 0
     * payType : 1
     * payTypeName : 喷涂币支付
     */

    private BigDecimal amount;
    private String payType;
    private String payTypeName;

    //是否选中支付
    private int isChecked;

    public int getIsChecked() {
        return isChecked;
    }

    public void setIsChecked(int isChecked) {
        this.isChecked = isChecked;
    }


    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayTypeName() {
        return payTypeName;
    }

    public void setPayTypeName(String payTypeName) {
        this.payTypeName = payTypeName;
    }


    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeSerializable(this.amount);
        dest.writeString(this.payType);
        dest.writeString(this.payTypeName);
        dest.writeInt(this.isChecked);
    }

    public void readFromParcel(Parcel source) {
        this.amount = (BigDecimal) source.readSerializable();
        this.payType = source.readString();
        this.payTypeName = source.readString();
        this.isChecked = source.readInt();
    }

    public PayTypeListBean() {
    }

    protected PayTypeListBean(Parcel in) {
        this.amount = (BigDecimal) in.readSerializable();
        this.payType = in.readString();
        this.payTypeName = in.readString();
        this.isChecked = in.readInt();
    }

    public static final Parcelable.Creator<PayTypeListBean> CREATOR = new Parcelable.Creator<PayTypeListBean>() {
        @Override
        public PayTypeListBean createFromParcel(Parcel source) {
            return new PayTypeListBean(source);
        }

        @Override
        public PayTypeListBean[] newArray(int size) {
            return new PayTypeListBean[size];
        }
    };
}
